#include "csapp.h"
#include "stdio.h"
int main(int argc,char **argv){	
	char *src=*(argv+1);
	const struct in_addr buf;
	int res=inet_pton(AF_INET,src,(void *)&buf);
	uint32_t pri=ntohl(buf.s_addr);
	if(res==1) printf("0x%x\n",pri);
	else printf("There is something wrong!\n");
	exit(0);
}
